<?php
use think\facade\Route;
Route::post('admin/stores/:id/status/:status$', 'admin/Store/status')->pattern(['status' => '\d+',]);
Route::resource('admin/stores', 'admin/Store');

Route::resource('admin/tags', 'admin/Tag');
Route::resource('admin/attrs', 'admin/Attr');
Route::post('admin/attrs/value', 'admin/Attr/value');
Route::post('admin/attrs/valmap', 'admin/Attr/map');
Route::post('admin/attrs/main/:id/:type', 'admin/Attr/change_main');
Route::post('admin/tags/select', 'admin/Tag/select');
//Route::post('admin/attrs/delv/id/1.html', 'admin/Attr/delv');
//Route::post('admin/attrs/dela/id/:id$', 'admin/Attr/dela');


Route::post('admin/im/session/:id/status/:status$', 'admin/IMSession/status')->pattern(['id' => '\d+', 'status' => '\d+',]);
Route::resource('admin/im/session', 'admin/IMSession');